


import {
    get,
    post,
    put,
  } from "./base_service"
  
  
  /**
   * 佳宝首页相关接口
   *
   * allen  2023-12-19
   */
  
  /**
   * 
   * 获取分类接口
   */
  const queryAllCategory = () => {
    return new Promise((resolve, reject) => {
      get("/api/front/category").then((data) => {
        if (data.code == 200) {
          resolve(data)
        } else {
          reject(data.message)
        }
      }).catch((e) => {
        reject(e.message)
      })
    })
  }
 




  module.exports = {
    queryAllCategory,
  }
  
